<!-- <template>
  <div>
    <!DOCTYPE html>
 
<html>
 
<head>
 
<meta charset="UTF-8">
 
<title>Insert title here</title>
 
</head>
 
<script src="jquery-3.3.1.js"></script>
 
<body>
 
    <button>设备的添加</button>
 
    <button>轨迹上传</button>
 
    <script type="text/javascript">
 
       $(function() {
 
           $("button:eq(0)").click(function() {
 
              $.post("http://yingyan.baidu.com/api/v3/entity/add", {
 
                  ak : "V22rlsRRyEHFAp3t6auTdVUBZ0wLTFrN",
 
                  service_id : "241158",
 
                  entity_name : "testNo1",
 
                  entity_desc : "测试专用"
 
              }, function(data) {
 
                  alert(data);
 
              });
 
           })
 
           $("button:eq(1)").click(function() {
 
                  $.post("http://yingyan.baidu.com/api/v3/track/addpoint", {
 
                     ak : "V22rlsRRyEHFAp3t6auTdVUBZ0wLTFrN",
 
                     service_id : "241158",
 
                     entity_name : "testNo1",
 
                     latitude:"32.069432",
 
                     longitude:"118.861806",
 
                     loc_time:"1524744514",
 
                     coord_type_input:"bd09ll"
 
                  }, function(data) {
 
                     alert(data);
 
                  });
 
           })
 
       })
 
    </script>
 
</body>
 
</html>
  </div>
</template>

<script>
export default {
  data() {
    return {
    }
  },

  methods: {
  },
}
</script>

<style scoped>
</style> -->